<ul class="breadcrumb">
    <li>
        <a href="/">首页</a> <span class="divider">/</span>
    </li>
    <li>
        <a href="#">系统管理</a> <span class="divider">/</span>
    </li>
    <li>
        <a href="/_system/admin/">用户管理</a> <span class="divider">/</span>
    </li>
    <li class="active">
        <?= ($action == 'add' ? '添加' : '编辑') ?>用户</a>
    </li>
</ul>

<form class="form-horizontal" method="post" action="/_system/admin/<?=$action?>" target="form_target_ifrm">
    <input type="hidden" name="admin_id" value="<?=$theOne['admin_id']?>" />
    <fieldset>
        <legend><?= ($action == 'add' ? '添加' : '编辑') ?>用户 </legend>
        <div class="control-group">
            <label for="admin_name" class="control-label">用户名/姓名</label>
            <div class="controls">
                <input type="text" id="admin_name" name="admin_name" class="input-large" value="<?=$theOne['admin_name']?>" />
                <span class="label label-important">必填</span>
            </div>
        </div>
        <div class="control-group">
            <label for="email" class="control-label">邮箱</label>
            <div class="controls">
                <input type="text" id="email" name="email" class="input-large" value="<?=$theOne['email']?>" />
                <span class="label label-important">必填</span>
            </div>
        </div>
        <div class="control-group">
            <label for="password" class="control-label">密码</label>
            <div class="controls">
                <input type="text" id="password" name="password" class="input-large" value="" />
                <span class="label label-important">必填</span>
            </div>
        </div>
        <div class="control-group">
            <label for="mobile" class="control-label">手机</label>
            <div class="controls">
                <input type="text" id="mobile" name="mobile" class="input-large" value="<?=$theOne['mobile']?>" />
                <span class="label label-important">必填</span>
            </div>
        </div>
        <div class="control-group">
            <label for="city_id" class="control-label">城市</label>
            <div class="controls">
                <select id="city_id" name="city_id">
                    <option value="0">请选择</option>
                    <?=Helper_HTML::getSelectMenu($cityList, $theOne['city_id'])?>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label for="input01" class="control-label">角色</label>
            <div class="controls">
                <select id="role_id" name="role_id">
                    <option value="0">请选择</option>
                    <?=Helper_HTML::getSelectMenu($roleList, $theOne['role_id'])?>
                </select>
            </div>
        </div>
        <div class="form-actions">
            <button class="btn btn-primary btn-large" type="submit">提交</button>
            <button class="btn btn-large" type="button" onclick="history.back();">返回</button>
        </div>
    </fieldset>
</form>